package com.gxa.service.impl;

import com.gxa.entity.User;

import com.gxa.mapper.UserMapper;
import com.gxa.service.UserService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceimpl implements UserService {
    @Autowired(required = false)
    private UserMapper userMapper;
    @Override
    public User login(String username,String password) {
        System.out.println("mapper层"+userMapper);
        User result=userMapper.login(username,password);
        System.out.println(result);
        return result;
    }
}
